﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductType_MultiBandManage.aspx.cs" Inherits="ProductManage_RFProductManage_Manage_ProductType_MultiBandManage"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <br />
                    <p style="text-align: center;">
                        输入产品类型S代码快速查找：<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button1" runat="server" Text="查  询" OnClick="Button1_Click" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Button2" runat="server" Text="返回所有产品类型列表" OnClick="Button2_Click" />
                    </p>
                    产品类型测试多频段信息列表：
                </div>
                <div style="text-align: center;">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductTypeID,ID" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                        OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting"
                        PageSize="20" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                            <asp:BoundField DataField="ProductTypeName" HeaderText="产品名称" />
                            <asp:BoundField DataField="StepItem" HeaderText="测试工序" />
                            <asp:BoundField DataField="TestBand" HeaderText="测试频段" />
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                            <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
                        </Columns>
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <EmptyDataTemplate>
                            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateInsertButton="True"
                                AutoGenerateRows="False" BackColor="White" BorderColor="White" BorderStyle="Ridge"
                                BorderWidth="2px" CellPadding="3" CellSpacing="1" DefaultMode="Insert" GridLines="None"
                                Height="50px" OnItemInserting="DetailsView1_ItemInserting" OnModeChanging="DetailsView1_ModeChanging">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <Fields>
                                    <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                    <asp:TemplateField HeaderText="测试工序">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("StepItem") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <InsertItemTemplate>
                                            <asp:DropDownList ID="DDLStepItem" runat="server" Width="100%">
                                                <asp:ListItem Value="交调测试">交调测试</asp:ListItem>
                                                <asp:ListItem Value="大功率测试">大功率测试</asp:ListItem>
                                            </asp:DropDownList>
                                        </InsertItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("StepItem") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="测试频段">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("TestBand") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <InsertItemTemplate>
                                            <asp:DropDownList ID="DDLTestBand" runat="server" Width="100%">
                                                <asp:ListItem Value="600M">600M</asp:ListItem>
                                                <asp:ListItem Value="700M">700M</asp:ListItem>
                                                <asp:ListItem Value="800M">800M</asp:ListItem>
                                                <asp:ListItem Value="900M">900M</asp:ListItem>
                                                <asp:ListItem Value="1800M">1800M</asp:ListItem>
                                                <asp:ListItem Value="1900M">1900M</asp:ListItem>
                                                <asp:ListItem Value="2100M">2100M</asp:ListItem>
                                                <asp:ListItem Value="2300M">2300M</asp:ListItem>
                                                <asp:ListItem Value="2600M">2600M</asp:ListItem>
                                            </asp:DropDownList>
                                        </InsertItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("TestBand") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Fields>
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            </asp:DetailsView>
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                    <br />
                    <br />
                </div>
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
